package com.example.data.holidays;

import java.util.Arrays;
import java.util.List;

public class HolidaysVO extends Holidays{
    public HolidaysVO(){
        super();
    }
    public static Holidays convert(Holidays holidays){
        Holidays holidaysInfo = new HolidaysVO();
        holidaysInfo.setEmpID(holidays.getEmpID());
        holidaysInfo.setAvailableHolidays(holidays.getAvailableHolidays());
        holidaysInfo.setRestHolidays(holidays.getRestHolidays());
        return holidaysInfo;
    }
    public static Object[] HolidaysList(Holidays holidays){
        Object[] holidaysList = {holidays.getAvailableHolidays(), holidays.getRestHolidays(),
                                                                                                                                            holidays.getEmpID()};
        return holidaysList;
    }
}
